/**
 * @author: LiuBoTao
 * @date: 2022/9/15
 * @ApiNote
 */
class Point
{ int x,y;
    Point(int x,int y){
        this.x=x;
        this.y=y;
    }
}

public class CallDemo {

    public static void main(String[] args) {
        int i=4;
        sumCall();
    }
    static void sumCall()
    {
        //Point p=new Point(3,2);
        //int cc= sum(p);
        //System.out.println("cc="+cc);
        //System.out.println("p.x="+p.x);
        //System.out.println("p.y="+p.y);
        int a=1;int b=2;
        int cc=sum(a,b);
        System.out.println("cc="+cc);
        System.out.println("a="+a);
        System.out.println("b="+b);
    }
    static int sum(Point ppp){
        int ee=  ppp.x+ppp.y;
        ppp.x=5;
        ppp.y=6;
        return ee;
    }
    static int sum(int aa,int bb){
        int ee=  aa+bb;
        aa=5;
        bb=6;
        return ee;
    }
    static int sum(int... aa){
        int sum=0;
        for(int i=0;i<aa.length;i++) {
            sum=sum+aa[i];
        }
        return sum;
    }
}
